﻿package com.victim.snake.graphics.roomClass
{
	import com.victim.snake.graphics.mainClass.Chat;
	
	//房间界面聊天面版
	public class RoomChat extends Chat
	{				
		public function RoomChat(w:int):void{
			super(w);
			
			//输出框
			this.outputTextArea.width=w;
			this.outputTextArea.height=86;
			
			//输出框滚动条
			this.scrollBar.x=this.outputTextArea.x+this.outputTextArea.width+10;
			this.scrollBar.y=this.outputTextArea.y;
			this.scrollBar.height=this.outputTextArea.height;						
			
			//频道选择框
			this.comboBox.x = 0;
			this.comboBox.y = this.outputTextArea.height + 11;
			this.comboBox.width=108;									
			this.dataProvider.removeAll();
			this.dataProvider.addItem({label:"房间",data:"room"});
			this.dataProvider.addItem({label:"世界",data:"all"});			
			//this.dataProvider.addItem({label:"房间",data:"room"});

			//输入框
			this.inputText.width=256;			
			this.inputText.x = this.comboBox.x + this.comboBox.width+14;
			this.inputText.y = this.comboBox.y + 1;
			
		}
	}
}